
"use strict"
var call = require("../../utils/request.js")
const app = getApp()
Page({
  data: {
    dataList:[],
    test:'',
  },

  onLoad: function(e) {
    let id = e.id;
    console.log(id)
    if (wx.getStorageSync("uid")) {
     
      var url = 'moneyLogdetail?id='+id
      call.getData(url, this.moneyLog, this.fail)

    } else {

      setTimeout(() => {
        wx.showToast({
          title: '请先授权登录',
          icon: "none",
        });
        setTimeout(() => {
          wx.switchTab({
            url: '../mine/mine'
          })
        }, 2000)
      }, 0);
    }


  },

  gohome: function (data) {
    wx.reLaunch({
      url: '../index/index',
    })
  },

  chongzhi: function (data) {
    wx.reLaunch({
      url: '../pageck/recharge',
    })
  },

  moneyLog: function (data) {
  
    this.setData({
      dataList: data.data,
    })
   
console.log(this.dataList)

    
  },

  godetail: function (data) {
    wx.reLaunch({
      url: '../pageck/details',
    })
  },

  
  tixian: function (data) {
    wx.showToast({  
      title: '功能暂未开放',  
      icon: 'loading',  
      duration: 1000  
  })  
  },


  yinhangka: function (data) {
    wx.showToast({  
      title: '功能暂未开放',  
      icon: 'loading',  
      duration: 1000  
  })  
  },
  mingxi: function (data) {
    wx.reLaunch({
      url: '../pageck/list',
    })
  },


  rizhi: function (data) {
    wx.showToast({  
      title: '功能暂未开放',  
      icon: 'loading',  
      duration: 1000  
  })  
  },

  chongzhi: function (data) {
    wx.reLaunch({
      url: '../pageck/recharge',
    })
  },


})